package com.twetec.cms.service.website;

import com.baomidou.mybatisplus.extension.service.IService;
import com.twetec.cms.model.po.website.SiteClusterServerPO;
import com.twetec.cms.model.vo.website.SiteClusterServerPageListVO;
import com.twetec.cms.model.vo.website.SiteClusterServerVO;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhxl
 * @since 2021-09-23
 */
public interface SiteClusterServerService extends IService<SiteClusterServerPO> {


    SiteClusterServerVO getSiteClusterById(Long id);

    Boolean saveSiteClusterServer(Long siteId, String name, String ip, Integer ftpPort, String siteRootPath, Integer status, String remark, Long creatorId);

    Boolean removeByIdList(List<Long> idList, Long modifierId);

    Boolean updateSiteClusterServer(Long id, String name, String ip, Integer ftpPort, String siteRootPath, Integer status, String remark, Long modifierId);

    Boolean updateStatusById(Long id, Integer status, Long modifierId);

    Boolean removeSiteClusterServerById(Long id, Long modifierId);

    //  String creatorName,  Date gmtCreateDateStart,Date gmtCreateDateEnd,
    SiteClusterServerPageListVO pageSearchList(Long siteId, String name, String ip, Integer ftpPort, String siteRootPath, Integer status, Date gmtModifiedDateStart, Date gmtModifiedDateEnd, String modifierName, String remark, Integer page, Integer limit);
}
